package cn.howxu.yichen_ovo.client.event;

import cn.howxu.yichen_ovo.YiChenOVO;
import cn.howxu.yichen_ovo.client.AvaritiaShaders;
import cn.howxu.yichen_ovo.client.model.CosmicModelLoader;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.event.ModelEvent;
import net.minecraftforge.client.event.RegisterShadersEvent;
import net.minecraftforge.eventbus.api.EventPriority;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

/**
 * 客户端事件
 */
@Mod.EventBusSubscriber(value = Dist.CLIENT, modid = YiChenOVO.MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ShadersRegister {
    
    @SubscribeEvent(
            priority = EventPriority.HIGHEST
    )
    public static void onRegisterShaders(RegisterShadersEvent event) {
        AvaritiaShaders.init(event);//注册着色器
    }
    @SubscribeEvent
    public static void registerLoaders(ModelEvent.RegisterGeometryLoaders event) {
        event.register("cosmic", CosmicModelLoader.INSTANCE);
    }
}
